package com.mycompany.app.common.audit.modification.hibernate.listener;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.event.PostDeleteEvent;
import org.hibernate.event.PostDeleteEventListener;
import org.hibernate.event.PostInsertEvent;
import org.hibernate.event.PostInsertEventListener;
import org.hibernate.event.PostUpdateEvent;
import org.hibernate.event.PostUpdateEventListener;

@SuppressWarnings("serial")
public class HistoryListener implements PostInsertEventListener,
        PostUpdateEventListener, PostDeleteEventListener {
    
    protected final Log logger = LogFactory.getLog(getClass());

    public void onPostInsert(PostInsertEvent event) {

       System.out.println("onPostInsert");
        
    }

    public void onPostUpdate(PostUpdateEvent event) {

        System.out.println("onPostUpdate");
        
    }

    public void onPostDelete(PostDeleteEvent event) {

        System.out.println("onPostDelete");
        
    }

    
}
